
<template tag="以下文档内容为hycli自动生成">
  <div>
    <el-dialog
      v-model="conf.aaagc_visible"
      title="删除"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaagc">
      <span>确认删除吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaagc" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaagc" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaacu_visible"
      title="删除"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaacu">
      <span>确认删除吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaacu" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaacu" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaaed_visible"
      title="删除"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaaed">
      <span>确认删除吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaaed" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaaed" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaawe_visible"
      title="删除"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaawe">
      <span>确认删除吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaawe" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaawe" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaaiu_visible"
      title="删除"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaaiu">
      <span>确认删除吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaaiu" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaaiu" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaabo_visible"
      title="任务归档"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaabo">
      <span>确认任务归档吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaabo" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaabo" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaabp_visible"
      title="激活计划"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaabp">
      <span>确认激活计划吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaabp" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaabp" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaabg_visible"
      title="暂停"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaabg">
      <span>确认暂停吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaabg" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaabg" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaabh_visible"
      title="恢复"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaabh">
      <span>确认恢复吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaabh" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaabh" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaabk_visible"
      title="删除"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaabk">
      <span>确认删除吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaabk" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaabk" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data(){
    return{
      conf:{
          aaagc_visible:false, //删除
          aaacu_visible:false, //删除
          aaaed_visible:false, //删除
          aaawe_visible:false, //删除
          aaaiu_visible:false, //删除
          aaabo_visible:false, //任务归档
          aaabp_visible:false, //激活计划
          aaabg_visible:false, //暂停
          aaabh_visible:false, //恢复
          aaabk_visible:false, //删除
      },
      //删除
      form_aaagc:{ 
        plan_id:"",
      },
      //删除
      form_aaacu:{ 
        plan_id:"",
      },
      //删除
      form_aaaed:{ 
        plan_id:"",
      },
      //删除
      form_aaawe:{ 
        plan_id:"",
      },
      //删除
      form_aaaiu:{ 
        plan_id:"",
      },
      //任务归档
      form_aaabo:{ 
        name:"",
      },
      //激活计划
      form_aaabp:{ 
        name:"",
      },
      //暂停
      form_aaabg:{ 
        name:"",
      },
      //恢复
      form_aaabh:{ 
        name:"",
      },
      //删除
      form_aaabk:{ 
        plan_id:"",
      },
    }
  },
  methods:{
     //--------------------删除---------------------------------
      //显示 删除 弹出框
      show_aaagc(fm){
         Object.assign(this.form_aaagc,fm)
         this.conf.aaagc_visible = true;
      },
      //隐藏 删除 弹出框
      hide_aaagc(){
        this.conf.aaagc_visible = false;
      },
      //保存 删除 弹出框数据
      save_aaagc(){
        let that = this
        this.$theia.http.post("/ws/dev/docs/del",this.form_aaagc).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '删除成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaagc()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `删除失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------删除---------------------------------
      //显示 删除 弹出框
      show_aaacu(fm){
         Object.assign(this.form_aaacu,fm)
         this.conf.aaacu_visible = true;
      },
      //隐藏 删除 弹出框
      hide_aaacu(){
        this.conf.aaacu_visible = false;
      },
      //保存 删除 弹出框数据
      save_aaacu(){
        let that = this
        this.$theia.http.post("/ws/project/design/del",this.form_aaacu).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '删除成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaacu()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `删除失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------删除---------------------------------
      //显示 删除 弹出框
      show_aaaed(fm){
         Object.assign(this.form_aaaed,fm)
         this.conf.aaaed_visible = true;
      },
      //隐藏 删除 弹出框
      hide_aaaed(){
        this.conf.aaaed_visible = false;
      },
      //保存 删除 弹出框数据
      save_aaaed(){
        let that = this
        this.$theia.http.post("/ws/dev/task/del",this.form_aaaed).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '删除成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaaed()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `删除失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------删除---------------------------------
      //显示 删除 弹出框
      show_aaawe(fm){
         Object.assign(this.form_aaawe,fm)
         this.conf.aaawe_visible = true;
      },
      //隐藏 删除 弹出框
      hide_aaawe(){
        this.conf.aaawe_visible = false;
      },
      //保存 删除 弹出框数据
      save_aaawe(){
        let that = this
        this.$theia.http.post("/ws/test/task/del",this.form_aaawe).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '删除成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaawe()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `删除失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------删除---------------------------------
      //显示 删除 弹出框
      show_aaaiu(fm){
         Object.assign(this.form_aaaiu,fm)
         this.conf.aaaiu_visible = true;
      },
      //隐藏 删除 弹出框
      hide_aaaiu(){
        this.conf.aaaiu_visible = false;
      },
      //保存 删除 弹出框数据
      save_aaaiu(){
        let that = this
        this.$theia.http.post("/ws/dev/risk/del",this.form_aaaiu).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '删除成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaaiu()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `删除失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------任务归档---------------------------------
      //显示 任务归档 弹出框
      show_aaabo(fm){
         Object.assign(this.form_aaabo,fm)
         this.conf.aaabo_visible = true;
      },
      //隐藏 任务归档 弹出框
      hide_aaabo(){
        this.conf.aaabo_visible = false;
      },
      //保存 任务归档 弹出框数据
      save_aaabo(){
        let that = this
        this.$theia.http.post("/ws/dev/plan/arch",this.form_aaabo).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '任务归档成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaabo()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `任务归档失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------激活计划---------------------------------
      //显示 激活计划 弹出框
      show_aaabp(fm){
         Object.assign(this.form_aaabp,fm)
         this.conf.aaabp_visible = true;
      },
      //隐藏 激活计划 弹出框
      hide_aaabp(){
        this.conf.aaabp_visible = false;
      },
      //保存 激活计划 弹出框数据
      save_aaabp(){
        let that = this
        this.$theia.http.post("/ws/dev/plan/unarch",this.form_aaabp).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '激活计划成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaabp()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `激活计划失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------暂停---------------------------------
      //显示 暂停 弹出框
      show_aaabg(fm){
         Object.assign(this.form_aaabg,fm)
         this.conf.aaabg_visible = true;
      },
      //隐藏 暂停 弹出框
      hide_aaabg(){
        this.conf.aaabg_visible = false;
      },
      //保存 暂停 弹出框数据
      save_aaabg(){
        let that = this
        this.$theia.http.post("/ws/dev/plan/pause",this.form_aaabg).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '暂停成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaabg()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `暂停失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------恢复---------------------------------
      //显示 恢复 弹出框
      show_aaabh(fm){
         Object.assign(this.form_aaabh,fm)
         this.conf.aaabh_visible = true;
      },
      //隐藏 恢复 弹出框
      hide_aaabh(){
        this.conf.aaabh_visible = false;
      },
      //保存 恢复 弹出框数据
      save_aaabh(){
        let that = this
        this.$theia.http.post("/ws/dev/plan/resume",this.form_aaabh).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '恢复成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaabh()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `恢复失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------删除---------------------------------
      //显示 删除 弹出框
      show_aaabk(fm){
         Object.assign(this.form_aaabk,fm)
         this.conf.aaabk_visible = true;
      },
      //隐藏 删除 弹出框
      hide_aaabk(){
        this.conf.aaabk_visible = false;
      },
      //保存 删除 弹出框数据
      save_aaabk(){
        let that = this
        this.$theia.http.post("/ws/dev/plan/del",this.form_aaabk).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '删除成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaabk()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `删除失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
  },
}
</script>